package com.itheima.service;

import com.itheima.pojo.Emp;
import com.itheima.pojo.PageBean;

import java.time.LocalDate;
import java.util.List;

public interface EmpService {
    //分页查询
    PageBean page(Integer page, Integer pageSize, String name, Short gender, LocalDate begin, LocalDate end);


    //删除员工
    public void delete(List<Integer> ids);

    //新增员工
    void save(Emp emp);

    //查询员工
    Emp getById(Integer id);

    //更新员工
    void update(Emp emp);

    //登录
    Emp login(Emp emp);
}
